package com.dsg.dao.approve;

import com.dsg.entity.apply.DsgApplyBill;
import com.dsg.entity.approve.DsgApproveCase;
import com.dsg.util.BaseDao;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 實例動態表 Mapper 接口
 * </p>
 *
 * @author system
 * @since 2020-07-04
 */
@Repository
public interface DsgApproveCaseMapper extends BaseDao<DsgApproveCase> {
    List<DsgApproveCase> getTaskList(String userId);
    DsgApproveCase getStartedDeduOneCase(String appNo, String userId);
    DsgApproveCase getDeduOneCase(String appNo, String userId);
    DsgApproveCase getBeginCase(DsgApplyBill bill);
    DsgApproveCase getCase(String nodeName, String appNo, String userId);
    List<DsgApproveCase> timeoutCaseList();
    DsgApproveCase getApprovedCaseByNode(String nodeId, String appNo);
    DsgApproveCase getApplyCase(String appNo, String userId);
//    DsgApproveCase getCarRecordCase(String carOid);
}
